import request from '../utils/request';
//仓库管理业务接口文档
const api = {
  //根据字典代码获取字典明细项数据
  GetDictionaryByCode(data?: any) {
    return request({
      url: '/api/Business/GetDictionaryByCode',
      method: 'post',
      params: data,
      isRepeat: true, //允许重复
    });
  },
  //分页获取匹配的员工数据
  GetMatchPageEmployees(data?: any) {
    return request({
      url: '/api/Business/GetMatchPageEmployees',
      method: 'post',
      data,
    });
  },
  //新员工注册
  RegisterNewEmployee(data?: any) {
    return request({
      url: '/api/Business/RegisterNewEmployee',
      method: 'post',
      data,
    });
  },
  //获得员工详细数据
  GetEmployeeDetail(data?: any) {
    return request({
      url: '/api/Business/GetEmployeeDetail',
      method: 'post',
      data,
    });
  },
  //删除员工个人资料
  DelteEmployeeFile(data?: any) {
    return request({
      url: '/api/Business/DelteEmployeeFile',
      method: 'post',
      data,
    });
  },
  //删除员工数据
  DeleteEmployee(data?: any) {
    return request({
      url: '/api/Business/DeleteEmployee',
      method: 'post',
      data,
    });
  },
  //删除员工个人资料
  ExcuteUpdateManageAccountState(data?: any) {
    return request({
      url: '/api/Business/ExcuteUpdateManageAccountState',
      method: 'post',
      data,
    });
  },
  //重置操作人员登录密码
  ExcuteResetLoginPassWord(data?: any) {
    return request({
      url: '/api/Business/ExcuteResetLoginPassWord',
      method: 'post',
      data,
    });
  },
  //获取员工类型
  GetEmployeeTypeList(data?: any) {
    return request({
      url: '/api/Business/GetEmployeeTypeList',
      method: 'post',
      data,
    });
  },
  //修改员工基本信息
  UpdateEmployeeBaseData(data?: any) {
    return request({
      url: '/api/Business/UpdateEmployeeBaseData',
      method: 'post',
      data,
    });
  },
  //获取员工状态
  GetEmployeeStateList(data?: any) {
    return request({
      url: '/api/Business/GetEmployeeStateList',
      method: 'post',
      data,
    });
  },
  //获取民族
  GetEmployeeNationList(data?: any) {
    return request({
      url: '/api/Business/GetEmployeeNationList',
      method: 'post',
      data,
    });
  },
  //获取户籍类型
  GetRegisteredResidenceTypeList(data?: any) {
    return request({
      url: '/api/Business/GetRegisteredResidenceTypeList',
      method: 'post',
      data,
    });
  },
  //政治面貌
  GetPoliticsStatusList(data?: any) {
    return request({
      url: '/api/Business/GetPoliticsStatusList',
      method: 'post',
      data,
    });
  },
  //获取婚姻状况
  GetEmployeeMaritalStatusList(data?: any) {
    return request({
      url: '/api/Business/GetEmployeeMaritalStatusList',
      method: 'post',
      data,
    });
  },
  //获取学历
  GetDegreeList(data?: any) {
    return request({
      url: '/api/Business/GetDegreeList',
      method: 'post',
      data,
    });
  },
  //获取学历
  QueryMatchEmployeeDataList(data?: any) {
    return request({
      url: '/api/Business/QueryMatchEmployeeDataList',
      method: 'post',
      data,
    });
  },
  //分页获取匹配的仓库列表数据
  GetWarehousePageDataList(data?: any) {
    return request({
      url: '/api/Business/GetWarehousePageDataList',
      method: 'post',
      data,
    });
  },
  //获取匹配的可用库区数据【视图对象，带有货架数量】
  GetMatchWarehouseAreas(data?: any) {
    return request({
      url: '/api/Business/GetMatchWarehouseAreas',
      method: 'post',
      data,
    });
  },
  //获取仓库
  GetStockAreaTreeView(data?: any) {
    return request({
      url: '/api/Business/GetStockAreaTreeView',
      method: 'post',
      data,
    });
  },
};
//业务开单接口
export default api;
